TaskTreeCtl = Ext.extend(CmpControler, {

			bulidComponent : function() {

				var config = this.getCommonConfig();

				var item = new Ext.tree.TreePanel(config);

				var root = this.getTreeNodes();

				item.setRootNode(root);
				
				return item;
			},
			getCommonConfig : function() {
				
				var width = cf.getC('gcc').sw * 0.3;

				var config = {
					border : false,
					region : 'west',
					split : true,
					autoScroll : true,
					frame : true,
					// animate : true,
					width : 382
				}

				return config;
			},
			getTreeNodes : function() {

				var root = new Ext.tree.TreeNode({
							text : '审核任务'
						});
						
				root.appendChild(this.createNode('待审核','0'));
				root.appendChild(this.createNode('审核通过','1'));
				root.appendChild(this.createNode('审核未通过','2'));

				return root;

			},
			createNode : function(text, id) {
				
				var node = new Ext.tree.TreeNode({
							id : id,
							text : text
						});

				node.on('click', this.nodeClick, this);

				return node;

			},
			nodeClick : function(node) {
				var tgc = cf.getC('tgc');
				tgc.load(node);
			}

		});
